package com.cwnu.service;

import com.cwnu.entity.Article;
import com.cwnu.entity.PageBean;
import com.cwnu.entity.User;

import java.util.List;

public interface ArticleService {
    void add(Article article);

    Article findById(Integer id);

    void update(Article article);

    void delete(Integer id);

    PageBean<Article> list(Integer pageNum, Integer pageSize, Integer categoryId);

    PageBean<Article> listAll(Integer pageNum, Integer pageSize, Integer categoryId, Integer status);

    List<Article> getWithoutPb();

    User geUser(Integer articleId);

    List<Article> getReviewArticle(Integer userId);

    List<Article> search(String key);
}
